import {
    HTTP,
} from "@/plugins/axios";

// 获取
export const GetContestNewsList= data => HTTP(`/admin/contest_news`,data,"GET");
// 根据id搜索
export const GetContestNewsListById= data => HTTP(`/admin/contest_news/${data.search}`,data.page,"GET");
// 根据姓名搜索
export const GetContestNewsListByName= data => HTTP(`/admin/contest_news/contestNewsName/${data.search}`,data,"GET");
// 添加
export const AddContestNewsList= data => HTTP(`/admin/publish/contest_news`,data,"POST");
// 修改
export const UpdateContestNewsList= data => HTTP(`/admin/update/contest_news`,data,"PUT");
// 删除
export const DeleteContestNewsList= data => HTTP(`/admin/delete/contest_news/${data}`,data,"DELETE");